package com.ben.multiple.shard.readwritespring.mp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName("t_teacher")
@Data
public class Teacher {
    @TableId(value = "teacher_id", type = IdType.AUTO)
    private Long teacherId;
    private String name;
    private Integer age;

    public Teacher() {
    }

    public Teacher(Long teacherId, String name, Integer age) {
        this.teacherId = teacherId;
        this.name = name;
        this.age = age;
    }

}
